package com.yunfeisoft.business.model;

import com.yunfeisoft.common.base.BaseModel;
import com.yunfeisoft.common.sql.record.TransientField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * ClassName: HospitalConsult
 * Description: 入院咨询
 *
 * @Author: Jackie liu
 * Date: 2020-01-13
 */
@Entity
@Table(name = "TT_HOSPITAL_CONSULT")
public class HospitalConsult extends BaseModel implements Serializable {

    /**
     * Field serialVersionUID: 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 咨询者
     */
    @Column
    private String consultName;

    /**
     * 与入院者关系
     */
    @Column
    private String relationship;

    /**
     * 入院者
     */
    @Column
    private String elderName;

    /**
     * 性别
     */
    @Column
    private String sex;

    /**
     * 所属组织机构
     */
    @Column
    private String orgId;

    @TransientField
    private String orgName;

    public String getSexStr() {
        if ("1".equals(sex)) {
            return "男";
        }
        if ("2".equals(sex)) {
            return "女";
        }
        return null;
    }

    /**
     * 年龄
     */
    @Column
    private Integer age;

    /**
     * 收入
     */
    @Column
    private String income;

    /**
     * 身体状况
     */
    @Column
    private String health;

    /**
     * 医保
     */
    @Column
    private String medical;

    /**
     * 户籍
     */
    @Column
    private String household;

    /**
     * 现居住地址
     */
    @Column
    private String address;

    /**
     * 联系电话
     */
    @Column
    private String phone;

    /**
     * 入院要求
     */
    @Column
    private String remark;

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getConsultName() {
        return consultName;
    }

    public void setConsultName(String consultName) {
        this.consultName = consultName;
    }

    public String getRelationship() {
        return relationship;
    }

    public void setRelationship(String relationship) {
        this.relationship = relationship;
    }

    public String getElderName() {
        return elderName;
    }

    public void setElderName(String elderName) {
        this.elderName = elderName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getIncome() {
        return income;
    }

    public void setIncome(String income) {
        this.income = income;
    }

    public String getHealth() {
        return health;
    }

    public void setHealth(String health) {
        this.health = health;
    }

    public String getMedical() {
        return medical;
    }

    public void setMedical(String medical) {
        this.medical = medical;
    }

    public String getHousehold() {
        return household;
    }

    public void setHousehold(String household) {
        this.household = household;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }
}